﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AdminSite.Master" Inherits="System.Web.Mvc.ViewPage<HuynhQuangWebsite.Models.ServiceAttribute>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<%using (Html.BeginForm("CreateAttribute", "ManageService", new { fk = Model.FK_ServiceID }, FormMethod.Post, new { enctype = "multipart/form-data", @class = "form", id = "validate" }))
    { %>
    <%HuynhQuangWebsite.Models.huynhquangco_websiteEntities ctx = new HuynhQuangWebsite.Models.huynhquangco_websiteEntities();
          //var serviceAttributes = (from attributes in ctx.ServiceAttributes where attributes.FK_ServiceID == Model.ServiceID select attributes).ToList();
       //var model = new HuynhQuangWebsite.Models.ServiceAttribute();
       //model = Model.CurrentSeviceAttribute;
          %>
    <div class="widget">
            <div class="title"><img src="../../Images/adminSite/icons/dark/pencil.png" alt="" class="titleIcon" /><h6>Thuộc tính dịch vụ</h6></div>
                <div class="formRow">
                    <div class="formRight"><%:Html.TextBoxFor(model => model.ServiceAttributeName, new { @class = "validate[required]", id = "req" })%></div>
                    <div class="clear"></div>
                </div>
            <div class="formSubmit"><input type="submit" value="cập nhật" class="blueB" /></div>
            <div class="clear"></div>
            <div><%:Html.HiddenFor(model => model.FK_ServiceID)%></div>
        </div>
 <%} %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleAreaPlaceHolder" runat="server">
</asp:Content>
